<template>
  <div>
    <div style="font-size: 30px;color: red;">{{type}}</div>
    <button @click="aa">生成随机数</button>
  </div>
</template>


<script>
export default {
  data() {
    return {
      type: 0
    };
  },
  created() {
  },

  
  mounted() {
    
  },
  methods: {
    aa(){
      this.type=parseInt(Math.random() * 100000);
    }
  }
};
</script>

